<?php
use app\backend\components\AppAdminAcl;

?>

<dl>
    <dt><i class="fa fa-repeat fa-fw"></i>待办事项</dt>
    <dd><a href="<?php echo Yii::$app->params['web_url']; ?>/cmp/evaluate/index.html">评价推荐<span
                    class="SpanOrange"><?php echo Yii::$app->session['counts']['old_eval_num'] ?></span></a></dd>
    <dd><a href="<?php echo Yii::$app->params['web_url']; ?>/cmp/progress/index.html">进度确认<span
                    class="SpanOrange"><?php echo Yii::$app->session['counts']['progre_num'] ?></span></a></dd>
    <dd>
        <a href="<?php echo Yii::$app->params['web_url']; ?>/cmp/headcoll/index.html">待付猎头费<span><?php echo Yii::$app->session['counts']['entry_num'] ?></span></a>
    </dd>
</dl>
<dl>
    <dt><i class="fa fa-repeat fa-fw"></i>查看推荐</dt>
    <dd>
        <a href="<?php echo Yii::$app->params['web_url']; ?>/cmp/newrecom/index.html">新推荐<span><?php echo Yii::$app->session['counts']['eval_num'] ?></span></a>
    </dd>
    <dd>
        <a href="<?php echo Yii::$app->params['web_url']; ?>/cmp/interview/index.html">待面试<span><?php echo Yii::$app->session['counts']['alin_num'] ?></span></a>
    </dd>
    <dd>
        <a href="<?php echo Yii::$app->params['web_url']; ?>/cmp/consider/index.html">待考虑<span><?php echo Yii::$app->session['counts']['cons_num'] ?></span></a>
    </dd>
    <dd>
        <a href="<?php echo Yii::$app->params['web_url']; ?>/cmp/allrecom/index.html">全部推荐<span><?php echo Yii::$app->session['counts']['all_num'] ?></span></a>
    </dd>
    <dd>
        <a href="<?php echo Yii::$app->params['web_url']; ?>/cmp/collection/index.html">收藏夹<span><?php echo Yii::$app->session['counts']['collec_num'] ?></span></a>
    </dd>
</dl>
<dl>
    <dt><i class="fa fa-repeat fa-fw"></i>职位管理</dt>
    <dd><a href="<?php echo Yii::$app->params['web_url'] ?>/cmp/position/postjob.html">发布职位</a></dd>
    <dd><a href="<?php echo Yii::$app->params['web_url'] ?>/cmp/position/draft.html">草稿</a></dd>
    <dd><a href="<?php echo Yii::$app->params['web_url'] ?>/cmp/position/joblist.html">职位列表</a></dd>
    <dd><a href="<?php echo Yii::$app->params['web_url']; ?>/cmp/collectionhead/index.html">收藏猎头</a></dd>
</dl>
<dl>
    <dt><i class="fa fa-repeat fa-fw"></i>企业信息与认证</dt>
    <dd><a href="<?php echo Yii::$app->params['web_url'] ?>/cmp/certification/index.html">基本资料</a></dd>
    <dd><a href="<?php
        $id = Yii::$app->session['user_id'];
        $cmpInfo = \app\models\cmp\Cmp::findOne($id);
        switch ($cmpInfo['auth_status']) {
            case '0':
                echo Yii::$app->params['web_url'] . '/cmp/certification/notcertification.html';
                break;
            case '1':
                echo Yii::$app->params['web_url'] . '/cmp/certification/certification.html';
                break;
            case '2':
                echo Yii::$app->params['web_url'] . '/cmp/certification/notcertification.html';
                break;
            case '3':
                echo Yii::$app->params['web_url'] . '/cmp/certification/notcertification.html';   
                break;
            case '4':
                echo Yii::$app->params['web_url'] . '/cmp/certification/authstatus.html';
                break;
            default:
                echo Yii::$app->params['web_url'] . '/cmp/certification/success.html';
                break;
        }
        // echo $cmpInfo['auth_status'] == 1 ? Yii::$app->params['web_url'] . '/cmp/certification/certification.html' : Yii::$app->params['web_url'] . '/cmp/certification/notcertification.html'
        ?>">认证资料<?php echo $cmpInfo['auth_status'] == 1 ? '(已认证)' : '(未认证)' ?></a></dd>
</dl>
<dl>
    <dt><i class="fa fa-repeat fa-fw"></i>账号管理</dt>
    <dd><a href="<?php echo Yii::$app->params['web_url'] ?>/cmp/accountmangement/privacy.html">隐私设置</a></dd>
    <dd><a href="<?php echo Yii::$app->params['web_url'] ?>/cmp/accountmangement/modifypass.html">修改密码</a></dd>
    <dd><a href="<?php echo Yii::$app->params['web_url'] ?>/cmp/accountmangement/loginlog.html">登录日志</a></dd>
    <dd><a href="<?php echo Yii::$app->params['web_url'] ?>/cmp/accountmangement/reply.html">反馈意见</a></dd>
</dl>